package cn.tedu.spring.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestUserXml {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext(
                "bean.xml"
        );
        UserXml userXml = context.getBean(UserXml.class);
        userXml.run();
        System.out.println(userXml);
    }
}
